﻿Imports System.IO

Public Class VerImagen
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not Page.IsPostBack Then
            If File.Exists(Server.MapPath("/imgproductos/grandes/" & Request.Params("CodArticulo") & ".jpg")) Then
                Image1.ImageUrl = "~/imgproductos/grandes/" & Request.Params("CodArticulo") & ".jpg"
            Else
                Image1.ImageUrl = "~/img/NoImagen.jpg"
            End If
        End If

    End Sub

End Class